package Observer;

/**
 * @Author:CJJ
 * OctalObserver extends Observer
 */
public class OctalObserver extends Observer{
    public OctalObserver(Subject subject) {
        this.subject = subject;
        this.subject.attach(this);
    }
    @Override
    public void update() {
        System.out.print("Octal String:"
        +Integer.toOctalString(subject.getState()));
    }
}
